<div id="content-header">
<h1><?php echo __d('system','Edit Action');?></h1>
</div>
<div id="breadcrumb">
<a href="<?php echo $this->Html->url('/admin/')?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> <?php echo __d('system','Home');?></a>
<a href="#"><?php echo __d('system','Edit');?></a>
<a href="#" class="current"><?php echo $datas['Action']['action']?></a>
</div>
<div class="container-fluid">

<div class="row-fluid">
    <div class="span12">
 <?php
    echo $this->Form->create('Action', array('id' => 'paginate','class'=>'form-horizontal', 'action' => 'admin_edit_config_action', 'url' => $this->request->here(false), 'type' => 'file',
        'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));

    echo $this->Html->script('ckeditor/ckeditor');
    echo $this->element('toolbar');
    ?>                                    
        <div class="widget-box">
            <?php            
            $fieldsets['action'] = $this->Form->input('action', array(
                'label' => array('text'=>__('system','Action'),'class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text'));                
                $fieldsets['descriptions'] = $this->Form->input('descriptions', array(
                'label' => array('text'=>__d('system','Descriptions'),'class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',                
                'type' => 'text'));                                                                                                                                              
            ?>
<?php           
            $layout = array(
                array('action'),
                array('descriptions'),                                               
            );
            $layout = array(
                array(
                    'Basic setting',
                    $layout,
                )
            );
            echo $this->Layout->form($layout, $fieldsets);
    ?>        
        </div>    
    <?php    
    echo $this->Form->hidden('node_type_id');
    echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
    echo $this->Form->end();
    ?>                                    
    </div>    
</div>

